//
//  LGHUD.swift
//  LGMusic
//
//  Created by 梁尚嘉 on 2017/3/31.
//  Copyright © 2017年 LimeGah. All rights reserved.
//

import UIKit
import SVProgressHUD
class LGHUD: NSObject {

    class func loading(_ message:String) {
        SVProgressHUD.show(withStatus: message)
    }

    class func showError(_ error:String) {
        SVProgressHUD.showError(withStatus: error)
    }

    class func showSuccess(_ success:String) {
        SVProgressHUD.showSuccess(withStatus: success)
    }

    class func showInfo(_ info:String) {
        SVProgressHUD.showInfo(withStatus: info)
    }

    class func dismiss() {
        self .dismiss(withDelay: 0)
    }

    class func dismiss(withDelay:TimeInterval) {
        SVProgressHUD.dismiss(withDelay: withDelay)
    }
}
